package com.seari.ats;

import java.util.Arrays;

public class Ceshi {

    public static void main(String[] args){

        String[]  str= {"1","2","3","4","5","6","7","8"};
        String [] newData = Arrays.copyOfRange(str, 2, 7);
        System.out.println("newData="+newData.length);
        System.out.println("newData="+newData[0]);
        int a = 0;
        newData[a]="9";
        System.out.println("newData="+newData[0]);
        System.out.println("newData="+newData[4]);
    }
}
